package com.sen.patterns.structural.facade.ex1;

public class Connection {
	
	public Object access(String use) {
		
		if ("general".equalsIgnoreCase(use)) {
			return new GeneralInfo();
		} 
		
		if ("special".equalsIgnoreCase(use)) {
			return new SpecialInfo();
		}
		
		if ("executive".equalsIgnoreCase(use)) {
			return new PrivateInfo();
		}
		
		return null;
	}
}
